package com.sy.myknowledgebase.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;


@ComponentScan("com.sy")   // 自定义主类的包扫描位置
@MapperScan("com.sy.myknowledgebase.dao")
@SpringBootApplication
public class MyKnowledgeBaseApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyKnowledgeBaseApplication.class, args);
    }

}
